#ifndef _COMMAND_H_
#define _COMMAND_H_

#include <func.h>

typedef enum Commandname_s{
    CD,//0
    LS,//1
    PUTS,//2
    GETS,//3
    REMOVE,//4
    PWD,//5
    MKDIR,//6
    RMDIR,//7
}CommandName;

typedef struct Command_s{
    CommandName Name;   //命令名字
    char object[1024];  //命令操作对象，可以是目录或者文件路径
}Command;

int Send_Command(int sockfd,const Command *command);
int Recv_Command(int sockfd,Command *command);
int Which_Command(char* Combuf,Command *command);
int Do_Command(int sockfd,Command* command);
int recvArtrain(int sockfd);

#endif
